Fix #410815, reported by Lucas Rocha.
authorKristian Rietveld <kris@imendio.com>
Tue, 12 Jun 2007 09:19:26 +0000 (09:19 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Tue, 12 Jun 2007 09:19:26 +0000 (09:19 +0000)
commit8d5fd5168b89b384ef48f6ffe4f35ec4102d8041
tree3f1bf78b9e66811a2225128eaa76796275bdf524
parentd6061b54e29db4a230d2ddaf827b52ede25e1d23
Fix #410815, reported by Lucas Rocha.

2007-06-12  Kristian Rietveld  <kris@imendio.com>

Fix #410815, reported by Lucas Rocha.

* gtk/gtkiconview.c (gtk_icon_view_layout): determine a suitable
wrap-width with the first icon, if it exists,
(adjust_wrap_width): try to use icon_view->priv->item_width
if available,
(gtk_icon_view_set_cell_data): don't call adjust_wrap_width here,
which caused changes in wrap-width during the layouting process and
resulted in layouting artefacts,
(update_text_cell): don't set the wrap-width property, this should
be handled by adjust_wrap_width.

svn path=/trunk/; revision=18111
ChangeLog
gtk/gtkiconview.c